<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="lib/jquery-3.2.1.js"></script>
</head>
<body>
    <div class="content">
        <p class="item">html</p>
        <p class="item">css</p>
        <p class="item">javascript</p>
    </div>
    <script>
        // [{title:"html"},{}]
        var total = $(".content").find(".item");
        var arr = []
        total.each(function(index,value){
            var content = $(value).html();
            arr.push({
                title:content
            })
        })
        console.log(arr)
    </script>
</body>
</html>